package com.pinyougou.sellergoods.service;

import com.github.pagehelper.PageInfo;
import com.pinyougou.pojo.TbSpecification;

public interface SpecificationService {
    /**
     * 规格列表查询
     * @param specification
     * @param page
     * @param size
     * @return
     */
    PageInfo<TbSpecification> findAll(TbSpecification specification, Integer page, Integer size);

    /**
     * 添加规格
     * @param specification
     * @return
     */
    int add(TbSpecification specification);

    /**
     * 根据Id回显数据
     * @param id
     * @return
     */
    TbSpecification getOneById(Long id);

    /**
     * 修改操作
     * @param specification
     * @return
     */
    int update(TbSpecification specification);

}

